#pragma once

#include <vector>

class CHorizontalMenuWnd : public CWnd {
	DECLARE_DYNAMIC(CHorizontalMenuWnd)
private:
	CWnd* m_pParentWnd;
	std::vector<std::pair<CString, UINT>> m_menuItems;
	CFont m_font;
public:
	CHorizontalMenuWnd();
	virtual ~CHorizontalMenuWnd();

	BOOL Create(CWnd* pParentWnd);
	void SetMenuItems(const std::vector<std::pair<CString, UINT>>& menuItems);
	void ShowMenu(CPoint point);

protected:
	afx_msg void OnPaint();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnKillFocus(CWnd* pNewWnd);

	BOOL IsDynamicChecked();

	BOOL IsStaticChecked();

	DECLARE_MESSAGE_MAP()
};
